﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Shared.Models.Trade
{
    public class TradeSimUser
    {
        public const int NormalUser = 1;
        public const int ManagerUser = 2;
        public const int AdminUser = 4;

        public int id { get; set; }
        public int UserID { get; set; }
        public string UserName { get; set; }
        public bool Activated { get; set; }
        public int TotalOrders { get; set; }
        public int TotalVolume { get; set; }
        public int TotalSuccessTrade { get; set; }
        public int TotalCancel { get; set; }
        public int TotalOpen { get; set; }
        public decimal DailyProfit { get; set; }
        public DateTime StartDate { get; set; }
        public decimal DailyDrawDown { get; set; }
        public decimal MaxProfit { get; set; }
        public decimal MaxLoss { get; set; }
        public int TotalAllowedMaxOpen { get; set; }
        public int TotalAllowedSingleOpen { get; set; }
        public decimal AllowedDailyLoss { get; set; }
        public decimal AllowedTotalLoss { get; set; }
        public SimTradeUserStatusEnmu UserStatus { get; set; }
        public DateTime DisabledTime { get; set; }
        public int UserPrivilege { get; set; }
        public DateOnly DrawDownDate { get; set; }
        public string NickName { get; set; }
        public DateTime LoginTime { get; set; }
        public DateTime LogoutTime { get; set; }
        public int Status { get; set; }
        public bool AccountBalanced { get; set; }
        public string LevelName { get; set; }
        public List<int> BrokerList { get; set; } = new List<int>();
    }

    public enum SimTradeUserStatusEnmu
    {
        Normal,
        OnlyBalance,
        ForbidToday,
        ForbidForever
    }
}
